<template>
  <div>
    <div @click="handleClick">ToastPage</div>
    <cl-toast
      :message="toastMessage"
    ></cl-toast>
  </div>
</template>


<script lang="ts">
import Vue from 'vue'

export default Vue.extend({
  name: 'ToastPage',
  data () {
    return {
      toastMessage: ''
    }
  },
  methods: {
    handleClick () {
      this.toastMessage = ('这是一个toast' + Math.random())
    }
  }
})
</script>

